# -- coding: utf-8 -- 
# Name: app

from flask import Flask,flash,url_for,render_template,request
from flask_wtf.csrf import CSRFProtect
from forms import BaseLogin
import config


app = Flask(__name__)
@app.route('/')
def jello_world():
    return render_template('index.html')
@app.route('/login', methods=['GET','pOST'])
def login():
    if request.method == "GET":
        return "thisi is method GET"
    else:
        return "thisi is method POST"

app = Flask(__name__)
app.config.from_object(config)
CSRFProtect(app)
if __name__ == '__main__':
    app.run(debug=True)
